﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace TestHttpModules
{
    public partial class Product : Commons.Entity.EntityBase
    {
        public User User { get; set; }
        public IEnumerable<Product_Comment> Product_Comment { get; set; }
    }
    public class Product_Ext : Product
    {
    }
    [MetadataType(typeof(Product_CommentMetaData))]
    public partial class Product_Comment { }

    public class Product_CommentMetaData
    {
        [Required(ErrorMessage = "请输入评论标题")]
        public string CommentTitle { get; set; }
        [Required()]
        public string CommentInfo { get; set; }

    }
}